<div id="favorite">
	<div>	
	    <ul>
	        <li class="active_action"><%= link_to "收藏的需求", :controller => :user, :action => :fav_requirements %></li>
	        <li class="active_action"><%= link_to "收藏的稿件", :controller => :user, :action => :fav_comments %></li>
			<li class="active_action"><%= link_to "收藏的作品", :controller => :user, :action => :fav_works %></li>
	    </ul>
	</div>
	<div class="fav_requiements">
		<% form_tag({ :controller => :user, :action => :delete_fav_works }, :method => :post) do%>		
			<ul>
				<%=  render :partial => 'work', :collection => @works %>
				<a href="#" onclick="$('input[name=\'delete_ids[]\']').each(function(i,s){s.checked = true;});return false;">全选</a>
				<a href="#" onclick="$('input[name=\'delete_ids[]\']').each(function(i,s){s.checked = !s.checked;});return false;">反选</a>
			</ul>
			<%= submit_tag "删除", :class => "choice" %>
			<%= will_paginate @works%>
		<% end %>
	</div>
	
</div>	